<template>
  <div class="wallet">
    <div class="outline">
        <div class="balance">
      <div>
        <span class="balance-num">0.0</span>
        <span>元</span>
      </div>
      <span>我的余额</span>
    </div>
    <div class="discount">
      <div>
        <span class="discount-num">0</span>
        <span>个</span>
      </div>
      <span>我的优惠</span>
    </div>
    <div class="integral">
      <div>
        <span class="integral-num">0</span>
        <span>分</span>
      </div>
      <span>我的积分</span>
    </div>
    </div>

    <div class="detail">
      <div class="order-detail">
        <span class="order-icon">
          <img src="../images/icon-order.webp" alt="">
        </span>
        <span>我的订单</span>
      </div>
      <div class="integral-detail">
        <span class="integral-icon">
          <img src="../images/icon-shop.webp" alt="">
        </span>
        <span>积分商城</span>
      </div>
      <div class="members-detail">
        <span class="member-icon">
          <img src="../images/icon-store.webp" alt="">
        </span>
        <span>FT外卖会员卡</span>
      </div>
    </div>

    <div class="service">
      <div class="service-detail">
        <span class="service-icon">
          <img src="../images/icon-service.webp" alt="">
        </span>
        <span>服务中心</span>
      </div>
      <button class="btn" @click="btnClick">退出登录</button>
    </div>
  </div>
</template>


<script>
export default {
  name: 'PWallet',
  methods: {
    btnClick() {
      console.log("++btnClick++");
    }
  }
}
</script>

<style lang="less" scoped>

.wallet {
  width: 96vw;
  margin: 0 auto;
}

.outline {
  display: flex;
  height: 100px;
  justify-content: space-evenly;
  align-items: center;

  .balance,
  .discount,
  .integral {
    display: flex;
    flex-direction: column;
    div{
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}
span[class$="-num"] {
  margin: 8px 0;
  font-size: 26px;
  font-weight: 700;
  color: #F99E10;
}
.discount-num {
  color: #F46A47!important;
}
.integral-num {
  color: #73BE18!important;
}

.detail {
  font-size: 20px;
  border-top: 4px solid rgba(100, 100, 100, .1);
  border-bottom: 4px solid rgba(100, 100, 100, .1);
}
div[class$="-detail"] {
  display: flex;
  margin: 18px 0;
  
  span[class$="-icon"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    img {
      width: 100%;
    }
  }
}
.btn {
  display: block;
  width: 100%;
  height: 38px;
  outline: none;

  font-size: 20px;
  color: #fff;
  border: none;
  background-color: #FF8097;
}
</style>